/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.commands;

/**
 *
 * @author Developer
 */
public class autonomous1 extends CommandBase {
    
    public autonomous1() {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
        requires(load);
        requires(shoot);
        requires(pick);
        requires(camAim);
        requires(drivePID);
        requires(turnPID);
        requires(driveAim);
    }

    // Called just before this Command runs the first time
    protected void initialize() {
        aim obj_aim = new aim();
        aimWithDrive obj_aimWithDrive=new aimWithDrive();
        autoLoad obj_load=new autoLoad();
        autoDrive obj_drive=new autoDrive();
        autoShoot obj_shoot=new autoShoot();
        autoPickUp obj_pickUp=new autoPickUp();
        turn obj_turn=new turn();

        obj_drive.start();
        obj_shoot.start();
        obj_turn.start();
        obj_pickUp.start();
        obj_turn.start();
        obj_drive.start();
    }

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
    }

    // Make this return true when this Command no longer needs to run execute()
    protected boolean isFinished() {
        return false;
    }

    // Called once after isFinished returns true
    protected void end() {
    }

    // Called when another command which requires one or more of the same
    // subsystems is scheduled to run
    protected void interrupted() {
    }
}
